<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

<ui:composition template="templates/pageTemplate.xhtml">
	<ui:define name="content">
		<h2>Отправленные файлы</h2>
		<h:form style="width:100%">
			<h:outputLink value="register.jsf" style="padding-left: 20px">
				<h:outputText value="#{msgs['action.to_register_page']}"
					style="font-size: 12px" />
			</h:outputLink>
			<hr />
			<p:dataTable var="importedFile"
				value="#{importedFilesBean.importedFiles}" id="tasksList"
				dynamic="true" liveScroll="true" lazy="true" paginator="true"
				rows="10"
				paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
				rowsPerPageTemplate="5,10,15" emptyMessage="Записей не найдено"
				style="padding-top:10px">

				<p:column headerText="Идентификатор" style="width:100px"
					sortBy="#{importedFile.id}">
					<h:outputText value="#{importedFile.id}"/>
				</p:column>				

				<p:column headerText="Статус" style="width:100px"
					sortBy="#{importedFile.status}">
					<h:outputText value="#{importedFile.status}"/>
				</p:column>				
						
			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>
</html>
